{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('C:\\\\Users\\\\DELL\\\\Desktop\\\\bright_dog.png',\n",
       " 'C:\\\\Users\\\\DELL\\\\Desktop\\\\flipped_dog.png')"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from PIL import Image, ImageEnhance, ImageOps\n",
    "\n",
    "# Load the original image\n",
    "original_image_path = \"C:\\\\Users\\\\DELL\\\\Desktop\\\\dog.png\"\n",
    "original_image = Image.open(original_image_path)\n",
    "\n",
    "# Data Augmentation 1: Brightness Enhancement\n",
    "enhancer = ImageEnhance.Brightness(original_image)\n",
    "bright_image = enhancer.enhance(1.5)\n",
    "\n",
    "# Data Augmentation 2: Horizontal Flip\n",
    "flipped_image = ImageOps.mirror(original_image)\n",
    "\n",
    "# Save the augmented images\n",
    "bright_image_path = \"C:\\\\Users\\\\DELL\\\\Desktop\\\\bright_dog.png\"\n",
    "flipped_image_path = \"C:\\\\Users\\\\DELL\\\\Desktop\\\\flipped_dog.png\"\n",
    "bright_image.save(bright_image_path)\n",
    "flipped_image.save(flipped_image_path)\n",
    "\n",
    "bright_image_path, flipped_image_path\n"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "torch_hwzhao",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.16"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
